import 'package:get/get.dart';
import 'package:smart_devices/model/spare_part.dart';

class SpareDetailsLogic extends GetxController {
  Rx<SparePartModel> details =
      Rx(SparePartModel(imgUrl: '', name: '', code: '', model: '', count: 0, change: 0, inventory: 0));

  @override
  void onInit() {
    super.onInit();
    if (Get.arguments != null) {
      details.value = Get.arguments as SparePartModel;
    }
  }
}
